home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / makedev.z / makedev
Encoding:
Text File  |  1998-10-20  |  9.4 KB  |  199 lines

  1.  
  2.  
  3.  
  4. MMMMAAAAKKKKEEEEDDDDEEEEVVVV((((1111MMMM))))                                                        MMMMAAAAKKKKEEEEDDDDEEEEVVVV((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      MAKEDEV - create device special files
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////ddddeeeevvvv////MMMMAAAAKKKKEEEEDDDDEEEEVVVV [_t_a_r_g_e_t] [_p_a_r_a_m_e_t_e_r=_v_a_l]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _M_A_K_E_D_E_V creates specified device files in the current directory; it is
  16.      primarily used for constructing the /_d_e_v directory.  It is a "makefile"
  17.      processed by the _m_a_k_e(1) command.  Its arguments can be either targets in
  18.      the file or assignments overriding parameters defined in the file.  The
  19.      _t_a_r_g_e_ts aaaallllllllddddeeeevvvvssss and oooowwwwnnnneeeerrrrssss are assumed if no other targets are present
  20.      (see below).
  21.  
  22.      All devices are created relative to the current directory, so this
  23.      command is normally executed from /_d_e_v.  In order to create the devices
  24.      successfully, you must be the superuser.
  25.  
  26.      The following are some of the _t_a_r_g_e_t arguments that are recognized by
  27.      _M_A_K_E_D_E_V.  For a complete list you may need to examine the script.
  28.  
  29.      ttttttttyyyyssss       Creates _t_t_y (controlling terminal interface) files for CPU
  30.                 serial ports.  In addition, creates special files for _c_o_n_s_o_l_e,
  31.                 _s_y_s_c_o_n, _s_y_s_t_t_y, _k_e_y_b_d, _m_o_u_s_e, _d_i_a_l_s, and _t_a_b_l_e_t.  See
  32.                 _d_u_a_r_t(7), _c_o_n_s_o_l_e(7), _k_e_y_b_o_a_r_d(7), _m_o_u_s_e(7), _p_c_k_e_y_b_o_a_r_d(7),
  33.                 and _p_c_m_o_u_s_e(7) for details.
  34.  
  35.      ccccddddssssiiiioooo      Creates additional _t_t_y files enabled by using the Central Data
  36.                 serial board.
  37.  
  38.      ppppttttyyyy        Creates special files to support "pseudo terminals."  This
  39.                 target makes a small number of files, with more created as
  40.                 needed by programs using them.  Additional _p_t_y files can be
  41.                 made for older programs not using library functions to
  42.                 allocate _p_t_ys by using the _p_a_r_a_m_e_t_e_r override _M_A_X_P_T_Y=_1_0_0, or
  43.                 any other number between 1 and 199.  See _p_t_y(7M) for details.
  44.  
  45.      ddddkkkkssss        Creates special files for SCSI disks.  See _d_k_s(7M) for
  46.                 details.
  47.  
  48.      rrrraaaadddd        Creates special files for SCSI attached RAID disks.  See
  49.                 _r_a_i_d(1M) and _u_s_r_a_i_d(7M) for details.
  50.  
  51.      ffffddddssss        Creates special files for SCSI floppy drives.  See _s_m_f_d(7M)
  52.                 for details.
  53.  
  54.      uuuussssrrrrvvvvmmmmeeee     Creates special files for user level VME bus adapter
  55.                 interfaces.  See _u_s_r_v_m_e(7M) for details.
  56.  
  57.      uuuussssrrrrddddmmmmaaaa     Creates special files for user level access to DMA engines.
  58.                 See _u_s_r_d_m_a(7M) for details.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. MMMMAAAAKKKKEEEEDDDDEEEEVVVV((((1111MMMM))))                                                        MMMMAAAAKKKKEEEEDDDDEEEEVVVV((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      ttttppppssss        Creates special files for SCSI tape drives.  See _t_p_s(7M) for
  75.                 details.
  76.  
  77.      hhhhllll         Creates special files for the hardware spinlock driver to use
  78.                 in process synchronization (IRIS-4D/GTX models only).
  79.  
  80.      tttt3333222277770000      Creates the special files for the IBM 3270 interface
  81.                 controller.
  82.  
  83.      ggggsssseeee        Creates the special files for the IBM 5080 interface
  84.                 controller.
  85.  
  86.      ddddnnnn____llllllll      Creates the special file for the 4DDN logical link driver.
  87.  
  88.      ddddnnnn____nnnneeeettttmmmmaaaannnn  Creates the special file for the 4DDN network management
  89.                 driver.
  90.  
  91.      aaaauuuuddddiiiioooo      Creates the special file for the bi-directional audio channel
  92.                 interface for the IRIS-4D/20 series.  See _a_u_d_i_o(1) for
  93.                 details.
  94.  
  95.      ppppllllpppp        Creates the special file for the parallel printer interface
  96.                 for the IRIS-4D/20 series.  See _p_l_p(7) for details.
  97.  
  98.      eeeeiiii         Creates the special file for the Challenge/Onyx external
  99.                 interrupt interface.  See _e_i(7) for details.
  100.  
  101.      ggggeeeennnneeeerrrriiiicccc    Creates miscellaneous, commonly used devices:  _t_t_y, the
  102.                 controlling terminal device; _m_e_m, _k_m_e_m, _m_m_e_m, and _n_u_l_l, the
  103.                 memory devices; _p_r_f, the kernel profiling interface; _t_p_o_r_t,
  104.                 the texport interface; _s_h_m_i_q, the event queue interface; _g_f_x,
  105.                 _g_r_a_p_h_i_c_s, the graphics device interfaces; and _z_e_r_o, a source
  106.                 of zeroed unnamed memory.  See _t_t_y(7), _m_e_m(7), _p_r_f(7), and
  107.                 _z_e_r_o(7) for details concerning some of these respective
  108.                 devices.
  109.  
  110.      lllliiiinnnnkkkkssss      This option does both _d_i_s_k and _t_a_p_e
  111.  
  112.      ddddiiiisssskkkk       This option creates all the disk device special files for the
  113.                 _d_k_s drives, and then creates links by which you can
  114.                 conveniently reference them without knowing the configuration
  115.                 of the particular machine.  The links _r_o_o_t, _r_r_o_o_t, _s_w_a_p,
  116.                 _r_s_w_a_p, _u_s_r, _r_u_s_r, _v_h, and _r_v_h are created to reference the
  117.                 current root, swap, usr and volume header partitions.
  118.  
  119.      ttttaaaappppeeee       This option creates all the _t_p_s tape devices, then makes links
  120.                 to _t_a_p_e, _n_r_t_a_p_e, _t_a_p_e_n_s, and _n_r_t_a_p_e_n_s for the first tape drive
  121.                 found, if one exists.  It checks for SCSI in descending target
  122.                 ID order, and ascending SCSI bus number.
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. MMMMAAAAKKKKEEEEDDDDEEEEVVVV((((1111MMMM))))                                                        MMMMAAAAKKKKEEEEDDDDEEEEVVVV((((1111MMMM))))
  137.  
  138.  
  139.  
  140.      mmmmiiiinnnnddddeeeevvvvssss    This option is shorthand for creating the _g_e_n_e_r_i_c, _l_i_n_k_s, _p_t_y,
  141.                 _t_t_y_s, device files.
  142.  
  143.      aaaallllllllddddeeeevvvvssss    This option creates all of the device special files listed
  144.                 above.
  145.  
  146.      oooowwwwnnnneeeerrrrssss     This option changes the owner and group of the files in the
  147.                 current directory to the desired default state.
  148.  
  149.      oooonnnnllllyyyylllliiiinnnnkkkkssss  This option does only the link portion of _d_i_s_k and _t_a_p_e above,
  150.                 in case a different disk is used as root, or a different tape
  151.                 drive is used.
  152.  
  153. AAAADDDDDDDDIIIINNNNGGGG LLLLOOOOCCCCAAAALLLL DDDDEEEEVVVVIIIICCCCEEEESSSS
  154.      For some types of devices (currently disk, tape, and generic scsi), shell
  155.      scripts in /_d_e_v/_M_A_K_E_D_E_V._d are run to create devices.  These scripts are
  156.      of the form DDDDKKKKSSSS_____a_n_y_t_h_i_n_g, where _a_n_y_t_h_i_n_g can be anything other than _b_a_s_e,
  157.      as that is the name of the scripts shipped with the system.  This allows
  158.      site specific customization, without risk of losing the customization
  159.      when the operating system is upgraded or re-installed.  See the existing
  160.      scripts in that directory for examples.  The scripts are run in lexical
  161.      order.  The other two currently supported prefixes are TTTTPPPPSSSS____, and SSSSCCCCSSSSIIII____.
  162.  
  163. BBBBUUUUGGGGSSSS
  164.      The links made for /_d_e_v/_u_s_r and /_d_e_v/_r_u_s_r always point to partition 6 of
  165.      the root drive.  While this is the most common convention, it is not
  166.      invariable.
  167.  
  168.      If a system has been reconfigured with the /_u_s_r filesystem in some place
  169.      other than this default, by specifying the device in /_e_t_c/_f_s_t_a_b (see
  170.      _f_s_t_a_b(4)), the /_d_e_v/_u_s_r and /_d_e_v/_r_u_s_r devices will NOT point to the
  171.      device holding the real /_u_s_r filesystem.
  172.  
  173. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  174.      install(1), make(1), mknod(1M), ioconfig(1M).
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.